package com.designpattern.builder.traditional;

/**
 * @author Liusr
 * @date 2023/3/29
 * @package com.designpattern.builder.traditional
 * @Description: 传统builder模式  目标类
 */
public class Car {
	private  String partA;//部件A 必选
	private String partB;//部件B  必选
	private String partC;//部件C  可选
	private String partD;//部件D  可选
	private String partE;//部件E  可选

	public Car(String partA, String partB) {
		this.partA = partA;
		this.partB = partB;
	}

	public void setPartC(String partC) {
		this.partC = partC;
	}

	public void setPartD(String partD) {
		this.partD = partD;
	}

	public void setPartE(String partE) {
		this.partE = partE;
	}

	@Override
	public String toString() {
		return "Car{" +
				"partA='" + partA + '\'' +
				", partB='" + partB + '\'' +
				", partC='" + partC + '\'' +
				", partD='" + partD + '\'' +
				", partE='" + partE + '\'' +
				'}';
	}
}
